<template>
	<view class="wrap">
		<rich-text :nodes="content"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: []
			};
		},
		onLoad() {
			this.getAgreements();
		},
		methods: {
			getAgreements() {
				this.$api.post('/fit/agreements').then((res) => {
					console.log(res);
					this.content = res.data;
				});
			}
		}
	}
</script>

<style scoped lang="scss">
.wrap{
	padding: 32rpx;
	background-color: #fff;
}
</style>
